package com.kaibes.module.token.pojo;

import java.math.BigInteger;
import java.time.LocalDateTime;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;

/**
CREATE TABLE `token_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `user_id` integer DEFAULT NULL,
  `type` enum('CREATE','DELETE') NOT NULL,
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_type` (`user_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Description("Token日志")
@Data
public class TokenLog {

    @Description("日志ID")
    private BigInteger id;
    @Description("用户ID")
    private Integer userId;
    @Description("日志类型")
    private TokenLogType type;
    @Description("创建时间")
    private LocalDateTime createTime;
    
}
